<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head lang="en">
    <meta charset="UTF-8"/>
    <title></title>
</head>
<body>
        <pre>
package cn.goktech.serviceimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.goktech.${domain.className}Dao;
import cn.goktech.${domain.className};
import cn.goktech.service.UserService;

@Service("${domain.className?lower_case}Service")
public class ${domain.className}ServiceImp implements ${domain.className}Service{

    @Autowired
    private ${domain.className}Dao ${domain.className?lower_case}Dao

    public List<${domain.className}> getAll(){
        return ${domain.className?lower_case}Dao.getAll();
    }
    public ${domain.className} findById(Integer id){
    	return ${domain.className?lower_case}Dao.findById(Integer id);
    }
    public int deleteById(Integer id){
    	return ${domain.className?lower_case}Dao.deleteById(Integer id);
    }
    public int add(${domain.className} ${domain.className?lower_case}){
    	return ${domain.className?lower_case}Dao.add(${domain.className} ${domain.className?lower_case});
    }
    public int update(${domain.className} ${domain.className?lower_case}){
    	return ${domain.className?lower_case}Dao.update(${domain.className} ${domain.className?lower_case});
    }
}
        </pre>
</body>
</html>